/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.controller.event;

import com.entities.EventRegistration;
import com.model.EventLibraryModel;
import java.util.List;
import javax.enterprise.context.RequestScoped;
import javax.inject.Named;

/**
 *
 * @author Tuan Long
 */
@Named(value = "newRegistered")
@RequestScoped
public class newRegistered {

    EventLibraryModel model = new EventLibraryModel();
    
    public newRegistered() {
    }

    /**
     * @events_registeredTable
     */
    private List<EventRegistration> events_registeredTable;

    public List<EventRegistration> getEvents_registeredTable() { 
        events_registeredTable = model.fillRegisteredTable();
        return events_registeredTable;
    }
    /**
     * @count_registration
     */
    private int count_registration;

    public int getCount_registration() {        
        count_registration = getEvents_registeredTable().size();
        return count_registration;
    }
    
    
    /**
     * @events_total
     */
    private List<EventRegistration> events_total;

    public List<EventRegistration> getEvents_total() {
        events_total = model.fillTotalRegistered();
        return events_total;
    }
    
}
